package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingMapper {
    Integer queryCountByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    void edit(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

    OrderSetting findByDate(@Param("orderDate") Date orderDate);

    int updateReservations(@Param("id") Integer id, @Param("version") Integer version);
}
